<?php


namespace app\model;


class ArticleIndex extends BaseModel
{
    public function article(): \think\model\relation\HasOne
    {
        return $this->hasOne(Article::class, 'id', 'article_id');
    }
}